package com.ruoyi.project.wx.dao;


import com.ruoyi.project.wx.domain.OrderOrderDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 订单信息表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-05-27 17:57:00
 */
@Mapper
public interface OrderOrderDao {

	OrderOrderDO get(String id);
	
	List<OrderOrderDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderOrderDO orderOrder);
	
	int update(OrderOrderDO orderOrder);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<Map<String,Object>> getOrderListByStatus(Map<String,Object> map);

	Map<String,Object> getOrderById(Map<String,Object> paramMap);

	List<Map<String,Object>> getOrderList(Map<String, Object> map);

	int getOrderListCount(Map<String, Object> map);

	Map<String,Object> getHOrderById(String id);

	List<Map<String,Object>> statisticsList(Map<String, Object> map);

	int statisticsCount(Map<String, Object> map);

	List<Map<String,Object>> getDetailGoods(Map<String, Object> map);

	int getDetailGoodsCount(Map<String, Object> map);

	List<Map<String,Object>> getKUsers(Map<String, Object> map);

	int getKUsersCount(Map<String, Object> map);

	int updateExportByMap(Map<String,Object> map);

	OrderOrderDO getByOrder(String orderSn);

	List<Map<String,Object>> getBackOrderList(Map<String, Object> map);

	int getBackOrderListCount(Map<String, Object> map);


    List<Map<String, Object>> getOrderInvoiceList(Map<String, Object> paramMap);

    List<OrderOrderDO> getByPayNum(String out_trade_no);

    List<OrderOrderDO> receivingOrderJob(Date day);
}
